sbin_PROGRAMS=dolphin
lib_LTLIBRARIES=libdolphinUtil.la

src=server.c \
	server.h \
	common.h \
	config.h \
	conf.h \
	conf.c \
	list.h \
	lua_api.h \
	log.h \
	log.c \
	globals.h \
	hashtable.h \
	hashtable.c \
	md5.h \
	md5.c \
	sock.h \
	sock.c \
	globals.c \
	iniparser.h \
	iniparser.c \
	dictionary.h \
	dictionary.c \
	ini_api.h \
	sock_event.h \
	sock_kqueue.h \
	sock_event.c \
	sock_kqueue.c \
	msn.h \
	msn.c \
	msn_command.h \
	msn_command.c \
	msn_sso.h \
	msn_sso.c \
	sock_ssl.h \
	sock_ssl.c \
	msn_soap2.h \
	msn_soap2.c \
	sys_common.h \
	msn_contacts.h \
	msn_contacts.c \
	msn_sb.h \
	msn_sb.c \
	msn_session.h \
	msn_session.c \
	msn_user.h \
	msn_user.c \
	msn_msg.h \
	msn_msg.c

libdolphinUtil_la_SOURCES=\
				   array.h \
				   array.c \
				   liblog.h \
				   liblog.c \
				   rfc1123.c \
				   header.h \
				   header.c
AM_CFLAGS=`xml2-config --cflags` `pkg-config --cflags glib-2.0`
LIBS=`xml2-config --libs` `pkg-config --libs glib-2.0`
dolphin_LDADD=$(LUALIBS) -lm -lssl -lcrypto -lpthread -L/usr/local/lib -levent -L. -ldolphinUtil
sysconf_DATA=dolphin.conf
data_DATA=README
DEFS+=-DDEFAULT_CONFIG_FILE=\"$(prefix)/etc/dolphin.conf\" -D_GNU_SOURCE -D_REENTRANT -DPREFIX=\"$(prefix)\"
dolphin_SOURCES=$(src)
conf.o: conf_pre.h

conf_pre.h: autogen_conf_pre_h.pl
	$(SHELL) chmod +x autogen_conf_pre_h.pl || ./autogen_conf_pre_h.pl
